Added fields for the shortcuts tree and its model. (create_file_list):
authorFederico Mena Quintero <federico@ximian.com>
Wed, 1 Oct 2003 00:53:59 +0000 (00:53 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Wed, 1 Oct 2003 00:53:59 +0000 (00:53 +0000)
commit39e208d86584cc3a3670afc6de5bd3747866ec91
treedf7aa503232a9cc846a13563047fb90f0c3b320e
parente8ea480893f8cc04b40fda8a59986dc076f1f1c8
Added fields for the shortcuts tree and its model. (create_file_list):

2003-09-30  Federico Mena Quintero  <federico@ximian.com>

* gtkfilechooserimpldefault.c (struct _GtkFileChooserImplDefault):
Added fields for the shortcuts tree and its model.
(create_file_list): Don't call
gtk_tree_view_column_set_sort_column_id() twice.
(create_shortcuts_model): New function.
(list_icon_data_func): Use an ICON_SIZE macro instead of a
hardcoded value.
(list_row_activated): Use _gtk_file_chooser_set_current_folder_path()
to avoid converting the GtkFilePath to a URI string.
(gtk_file_chooser_impl_default_set_current_folder): Select the
appropriate item from the shortcuts list when the current folder
changes, to let the user know where he is.
(tree_selection_changed): Likewise.

* gtkfilesystem.h (struct _GtkFileSystemIface): Added methods for
::supports_shortcuts(), ::list_shortcuts(), ::set_shortcuts().
gtk/gtkfilechooserdefault.c
gtk/gtkfilesystem.h